package IC.AST;

public class WhileStatement extends Statement
{
	private Expression _whileExpression;
	private Statement _whileStatement;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }

	public WhileStatement(Interval interval, Expression whileExpression, Statement whileStatement)
	{
		super(interval);
		GiveBirth(whileExpression);
		GiveBirth(whileStatement);
		_whileExpression = whileExpression;
		_whileStatement = whileStatement;
	}
	
	public Expression GetExpression() { return _whileExpression; }
	public Statement GetSatement() { return _whileStatement; }
}
